package com.hospital.xiaochengxiu.yan.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author ：ysb
 * @ClassName ：t
 * @Package ：com.hospital.xiaochengxiu.yan.entity
 * @Description:
 * @Date:2021/10/21 16:21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("doctor_medicine")
public class DoctorMedicine {

    @TableId(type = IdType.AUTO)
    private Integer id;//编号
    private Integer userid; //用户id
    private String username; //用户名字
    private Integer medicineid; //药id
    private Integer sum;//数量
    private String time;//开药时间
    private Integer doctorid;//医生id
    private String type;//医嘱
    private Integer state;//状态

    private DrugRemedy drugRemedy;

    public DoctorMedicine(Integer userid, String username, Integer medicineid, Integer sum, String time, Integer doctorid, String type, Integer state) {
        this.userid = userid;
        this.username = username;
        this.medicineid = medicineid;
        this.sum = sum;
        this.time = time;
        this.doctorid = doctorid;
        this.type = type;
        this.state = state;
    }

    public DoctorMedicine(Integer id, Integer userid, String username, Integer medicineid, Integer sum, String time, Integer doctorid, String type, Integer state) {
        this.id = id;
        this.userid = userid;
        this.username = username;
        this.medicineid = medicineid;
        this.sum = sum;
        this.time = time;
        this.doctorid = doctorid;
        this.type = type;
        this.state = state;
    }
}

